package inter;

import lexer.*;
import symbols.*;

public class Proc extends Stmt {
    private String name;
    private Stmt stmt;
    public Proc(String name, Stmt stmt) {
	this.name = name;
	this.stmt = stmt;
    }
    public void gen(int b, int a) {
	emit("procedure "+name);
	stmt.gen(b, a);
	emit("ret");
    }
}
